package com.zk.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zk.dao.UserMapper;
import com.zk.entity.Person;
import com.zk.entity.User;
import com.zk.service.UserService;

@Transactional
@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	UserMapper userMapper;

	@Override
	public void addUser(User user) {
		// TODO Auto-generated method stub
		userMapper.addUser(user);
	}

	@Override
	public void updateUser(User user) {
		// TODO Auto-generated method stub
		userMapper.updateUser(user);
		
	}

	@Override
	public List<User> getUser(String starttime, String endtime,
			List<String> loginname) {
		// TODO Auto-generated method stub
		return userMapper.getUser(starttime, endtime, loginname);
	}

	@Override
	public User getUserById(String userid) {
		// TODO Auto-generated method stub
		return userMapper.getUserById(userid);
	}

	@Override
	public void deleteUser(User user) {
		// TODO Auto-generated method stub
		userMapper.deleteUser(user);
	}

}
